<?php
class LogView {
	
	public function ShowMessages() {
		$xhtml = "";
		foreach (Log::$Log as $key => $value) {
			$xhtml .= "<div class=\"$value[3]\">";
			$xhtml .= date("F j, Y G:i",$value[0]) . ":<br/>" .
					  $value[1];
					  if ($value[2] !== NULL) {
					  	$xhtml .= "<br/> data: <br/>";
					  	$xhtml .= "<pre>" . var_export($value[2], true) . "</pre>";
					  }
					  $xhtml .= "<br/>";
			$xhtml .= "</div>";
		}
		return $xhtml;
	}
}